﻿using System;
using System.Collections.Generic;
using System.Text;
using Hkwl.WorldExpo.Merchant.Model;
using Hkwl.WorldExpo.Merchant.DataAccess;
using System.Collections;

namespace Hkwl.WorldExpo.Merchant.Service.Impl
{
    public class LogServiceImpl : ILogService
    {
        private ILogDao infoDao;

        public LogServiceImpl(ILogDao infoDao)
        {
            this.infoDao = infoDao;
        }

        #region NxBookLog 对象

        public NxBookLog GetNxBookLogById(int bookLogId)
        {
            return infoDao.GetNxBookLogById(bookLogId);
        }

        #endregion

        #region NxQueryLog 对象

        public NxQueryLog GetNxQueryLogById(int queryId)
        {
            return infoDao.GetNxQueryLogById(queryId);
        }

        #endregion

        #region NxSendLog 对象

        public NxSendLog GetNxSendLogById(int sendId)
        {
            return infoDao.GetNxSendLogById(sendId);
        }

        public int GetSendNumByProjectId(int projectId)
        {
            return infoDao.GetSendNumByProjectId(projectId);
        }

        public int GetSendNumByClientId(int projectId, int clientId)
        {
            return infoDao.GetSendNumByClientId(projectId, clientId);
        }

        public int GetUseNumByProjectId(int projectId)
        {
            return infoDao.GetUseNumByProjectId(projectId);
        }

        public int GetUseNumByClientId(int projectId, int clientId)
        {
            return infoDao.GetUseNumByClientId(projectId, clientId);
        }

        public IList<IList> GetNxSendNumCollection(int projectId, int pageIndex, int pageSize, ref int count)
        {
            return infoDao.GetNxSendNumCollection(projectId, pageIndex, pageSize, ref count);
        }

        public IList<IList> GetNxUseNumCollection(int projectId, int pageIndex, int pageSize, ref int count)
        {
            return infoDao.GetNxUseNumCollection(projectId, pageIndex, pageSize, ref count);
        }

        public IList<IList> GetClientReporting(int merchantId, int pageIndex, int pageSize, ref int count)
        {
            return infoDao.GetClientReporting(merchantId, pageIndex, pageSize, ref count);
        }

        public IList<IList> GetProjectReporting(int merchantId, int pageIndex, int pageSize, ref int count)
        {
            return infoDao.GetProjectReporting(merchantId, pageIndex, pageSize, ref count);
        }

        public IList<NxSendLog> GetSendLogCollection(int merchantId, int clientId, int sendFlag, int useFlag, int pageIndex, int pageSize, ref int count)
        {
            return infoDao.GetSendLogCollection(merchantId, clientId, sendFlag, useFlag, pageIndex, pageSize, ref count);
        }

        #endregion
    }
}
